package com.vvv.designpattern.transaction.mediator;

import com.vvv.designpattern.transaction.colleague.AbstractCustomer;

/**
 * @author vvv
 * @date 2023-11-25 16 59
 * discription 中介者模式：
 * AbstractMediator为抽象中介者角色，需要定义不同同事之间的信息交互方法
 */
public abstract class AbstractMediator {

    /**
     *
     * @param orderId
     * @param targetCustomer 帮忙付款者
     * @param customer
     * @param payResult 支付成功后该参数才不为null
     */
    public abstract void messageTransfer(String orderId, String targetCustomer
            , AbstractCustomer customer, String payResult);
}
